import axios from "axios";

const http = axios.create({
    baseURL: 'http://localhost:8090/api',
    timeout: 20000
})


const getUsers = ()=>{
    return http.get('/user/findAll');
}

const getBooks = ()=>{
    return http.get('/book/findAll');
}

export {getBooks,getUsers}